﻿using System.Windows;
using ComicQ.Domain.Table;

namespace ComicQ.Dektop.View
{
    /// <summary>
    /// Interaction logic for MainPanelView.xaml
    /// </summary>
    public partial class MainPanelView
    {
        private readonly Staff _staff;

        public MainPanelView(Staff staff)
        {
            InitializeComponent();

            _staff = staff;
        }

        private void ButtonMemberClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new MemberView();
            newWindow.ShowDialog();
        }

        private void ButtonStaffClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new StaffView();
            newWindow.ShowDialog();
        }

        private void ButtonComicClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new ComicView();
            newWindow.ShowDialog();
        }

        private void ButtonAuthorClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new AuthorView();
            newWindow.ShowDialog();
        }

        private void ButtonPublisherClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new PublisherView();
            newWindow.ShowDialog();
        }

        private void ButtonYearClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new YearView();
            newWindow.ShowDialog();
        }

        private void ButtonRentClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new RentView();
            newWindow.ShowDialog();
        }

        private void ButtonComicStatusClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new ComicStatusView();
            newWindow.ShowDialog();
        }

        private void ButtonOrderClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new OrderView(_staff);
            newWindow.ShowDialog();
        }

        private void ButtonOrderStatusClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new OrderStatusView();
            newWindow.ShowDialog();
        }

        private void ButtonWarrantyClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new WarrantyView();
            newWindow.ShowDialog();
        }

        private void ButtonOrderDetailStatusClick(object sender, RoutedEventArgs e)
        {
            var newWindow = new OrderDetailStatusView();
            newWindow.ShowDialog();
        }
    }
}
